﻿<Window x:Class="WPF101_Data.BindingSecond"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:WPF101_Data"
    Title="BindingSecond" Height="300" Width="300" Loaded="Window_Loaded">
    <Window.Resources>
            <local:MySecondData x:Key="mySecondData"></local:MySecondData>
    </Window.Resources>
    <TextBox Name="textarea" Text="{Binding Source={StaticResource mySecondData}, UpdateSourceTrigger=PropertyChanged, Path= Name}"></TextBox>   
</Window>
